package com.rem.concurrency.multithreading.base;

/**
 * @author Rem
 * @date 2020-10-26
 */

public class Demo2 implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 300; i++) {
            System.err.println("撸代码2。。。:" + i);
        }
    }

    public static void main(String[] args) {
        Demo2 demo2 = new Demo2();


        new Thread(demo2).start();
        new Thread(demo2).start();
        for (int i = 0; i < 500; i++) {
            System.out.println("我在看电视2...：" + i);
        }
    }
}
